home *** CD-ROM | disk | FTP | other *** search
- // itgdmvw.h : interface of the CItgDemoView class
- //
- /////////////////////////////////////////////////////////////////////////////
-
- class CItgDemoView : public CFormView
- {
- protected: // create from serialization only
- CItgDemoView();
- DECLARE_DYNCREATE(CItgDemoView)
-
- public:
- //{{AFX_DATA(CItgDemoView)
- enum { IDD = IDD_ITGDEMO_FORM };
- CVBControl* m_ITGraph;
- //}}AFX_DATA
-
- // Attributes
- public:
- CItgDemoDoc* GetDocument();
- CString m_sFindStr;
- int m_bRandomSizedNodes;
- int m_nPrintoutType; // 1 = Print Graph, 2 = Print Report
- CRect rcGraph, rcPrintout, rcPage_G, rcPage_P;
- CPoint ptPix_G, ptPix_P;
- int nPages_X, nPages_Y;
- int mInches_X, mInches_Y;
-
- // Operations
- public:
- void FindNode(CWnd *parWnd, CString sFindStr);
- void RandomTree(int NodeCount);
- void RandomDirected(int NodeCount);
- int AskToSave();
-
- // Implementation
- public:
- virtual ~CItgDemoView();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
-
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
-
- // Printing support
- virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
- virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
- virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
- virtual void OnPrint(CDC* pDC, CPrintInfo*);
-
- // Generated message map functions
- protected:
- //{{AFX_MSG(CItgDemoView)
- afx_msg void OnSize(UINT nType, int cx, int cy);
- afx_msg void OnItemconnectItgraph1(UINT, int, CWnd*, LPVOID);
- afx_msg void OnKeypressItgraph1(UINT, int, CWnd*, LPVOID);
- afx_msg void OnItemclickItgraph1(UINT, int, CWnd*, LPVOID);
- afx_msg void OnClickItgraph1(UINT, int, CWnd*, LPVOID);
- afx_msg void OnSelectrectItgraph1(UINT, int, CWnd*, LPVOID);
- afx_msg void OnItemdblclickItgraph1(UINT, int, CWnd*, LPVOID);
- afx_msg void OnDblclickItgraph1(UINT, int, CWnd*, LPVOID);
- afx_msg void OnItemmousemoveItgraph1(UINT, int, CWnd*, LPVOID);
- afx_msg void OnMousedownItgraph1(UINT, int, CWnd*, LPVOID);
- afx_msg void OnLinedblclickItgraph1(UINT, int, CWnd*, LPVOID);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
-
- #ifndef _DEBUG // debug version in itgdmvw.cpp
- inline CItgDemoDoc* CItgDemoView::GetDocument()
- { return (CItgDemoDoc*)m_pDocument; }
- #endif
-
- /////////////////////////////////////////////////////////////////////////////
-